package cn.han.oopexec;
//本类用于实现宠物商店设计案例
public class TestAnimalShop {
    public static void main(String[] args) {

    }
}
class Animal{
    public String name;
    public int age;
    public void eat(){
        System.out.println("eat");
    }
}
class Cat extends Animal{
    @Override
    public void eat(){
        System.out.println("cateat");
    }
    public void miaoMiao(){
        System.out.println("catmiaomiao");
    }
}
class Bird extends Animal{

}
class Dog extends Animal{

}